#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

static int arr[100001];
int* printNumbers(int n, int* returnSize) {
    int max = 1;
    int j = 0;
    for (j = 0; j < n; j++)
    {
        max *= 10;
    }
    int i = 0;
    for (i = 1; i < max; i++)
    {
        arr[i - 1] = i;
    }
    *returnSize = i - 1;
    return arr;
}
int main()
{
    int n = 0;
    int returnSize = 0;
    scanf("%d", &n);
    printNumbers(n,arr);

}